package com.huawei;

import java.util.Scanner;

/**
 * Created by Z-hong on 2024/7/2.
 */

public class HJ7 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        float a=sc.nextFloat();
        String str=String.valueOf(a);
        //获取小数点后的第一位字符
        String[] in = str.split("\\.");
        String out = in[0];
        char c=str.charAt(str.indexOf('.')+1);
        int b=Integer.parseInt(String.valueOf(c));
        if(b>=5){
            System.out.println(Integer.parseInt(out)+1);
        }else {
            System.out.println(out);
        }
    }
}
